<template>
  <page-body>
    <view class="page">
      <view class="flex benben-position-layout flex flex-wrap align-center zan_flex_0"
        :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
        <view class='flex flex-wrap align-center justify-between flex-sub zan_fd0_0'>
          <view class='flex flex-wrap align-center zan_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
            data-url="1">
            <text class='fu-iconfont2  zan_fd0_0_c0_c0'>&#xE794;</text>
          </view>
          <view class='flex flex-wrap align-stretch justify-center'>
            <text class='zan_fd0_0_c1_c0'>收到的赞</text>
          </view>
          <view class='flex flex-wrap align-center justify-end zan_fd0_0_c0'>
          </view>
        </view>

      </view>
      <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
      <!---flex布局flex布局开始-->
      <view class="flex flex-direction align-stretch benben-flex-layout zan_flex_1">
        <template v-for='(item,key0) in dataList'>
          <view class='flex flex-direction flex-wrap align-stretch zan_fd1_0' :key='key0'>
            <view class='flex flex-wrap align-center flex-sub'>
              <image class='zan_fd1_0_c0_c0' mode="aspectFill" :src='item.avatar' @tap.stop="goHomeFunc(item.user_id)">
              </image>
              <view class='flex flex-direction align-stretch flex-sub zan_fd1_0_c0_c1'>
                <text>{{item.user_name}}</text>
                <view class='flex flex-wrap align-center zan_fd1_0_c0_c1_c1'>
                  <text>点赞</text>
                  <text>你的动态</text>
                  <text class='zan_fd1_0_c0_c1_c1_c2'>{{item.create_time}}</text>
                </view>
              </view>
            </view>
            <view class='flex flex-wrap align-center'>
              <text class='zan_fd1_0_c1_c0'>{{item.title}}</text>
            </view>
            <view class='flex flex-wrap align-center zan_fd1_0_c2' @tap.stop="handleJumpDiy" data-type="navigateTo"
              :data-url="`/pages/homePage/dongDetail/dongDetail?id=${item.aid}`">
              <image class='zan_fd1_0_c2_c0' mode="aspectFit" :src='item.image'></image>
              <text class='zan_fd1_0_c2_c1'>{{item.title}}</text>
            </view>
          </view>
        </template>
        <fu-empty :pagingListLoadedAll="pagingListLoadedAll" :pagingListNoListData="pagingListNoListData"
          :listDataLength="listDataLength" :isLoadInit="isLoadInit"></fu-empty>
      </view>

      <!---flex布局flex布局结束-->


    </view>
  </page-body>
</template>
<script>
  import pagingList from '@/common/mixin/paging_list.js';
  import {
    validate
  } from '@/common/utils/validate.js'

  export default {
    components: {},
    mixins: [pagingList],

    data() {
      return {
        "minixPagingListsApi": "",
        "pageingListApiMethod": "",
        "allowOnloadGetList": false,
        "dataList": []
      };
    },
    computed: {
      userInfo: {
        get() {
          return this.$store.state.userInfo
        },
        set() {
          this.$store.commit('updateUserInfo', value)
        },
      }
    },
    watch: {},
    onLoad(options) {

    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {
      this.getDataListFunc()
    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {

    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      //获取赞和收藏列表
      getDataListFunc() {
        this.minixPagingListsApi = global.apiUrls.post665939faebbfe;
        this.pageingListApiMethod = 'post';
        this.allowOnloadGetList = false;
        this.pagingListPostDataContent = {}
        this.listData = [];
        this.dataList = this.listData;
        this.pagingListToggle();

      },
      //跳转主页
      goHomeFunc(userid) {
        if (this.userInfo.id == userid) {

        } else {
          uni.navigateTo({
            url: `/pages/grzx/userHome/userHome?aid=${userid}`
          })
        }
      },
      pagingListPostData() {
        return this.pagingListPostDataContent
      }
    }
  };
</script>
<style lang="scss" scoped>
  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: var(--benbenbgColor1);
    background-size: 100% auto;
  }

  .zan_flex_0 {
    background: #fff;
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .zan_fd0_0_c1_c0 {
    font-size: 36rpx;
    font-weight: 700;
    color: #333333;
    line-height: 50rpx;
  }

  .zan_fd0_0_c0_c0 {
    font-size: 36rpx;
    color: #333;
  }

  .zan_fd0_0_c0 {
    width: 120rpx;
  }

  .zan_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
  }

  .zan_flex_1 {
    margin: 20rpx 32rpx 0rpx 32rpx;
  }

  .zan_fd1_0_c2_c1 {
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    width: 500rpx;
    margin: 0rpx 0rpx 0rpx 24rpx;
  }

  .zan_fd1_0_c2_c0 {
    width: 96rpx;
    height: 96rpx;
    border-radius: 16rpx;
  }

  .zan_fd1_0_c2 {
    background: #F6F6F6;
    border-radius: 16rpx 16rpx 16rpx 16rpx;
    width: 686rpx;
    height: 128rpx;
    margin: 24rpx auto 0rpx auto;
    padding: 0rpx 12rpx 0rpx 12rpx;
  }

  .zan_fd1_0_c1_c0 {
    color: rgba(102, 102, 102, 1);
    margin: 24rpx 0rpx 0rpx 0rpx;
  }

  .zan_fd1_0_c0_c1_c1_c2 {
    margin: 0rpx 0rpx 0rpx 12rpx;
    font-size: 24rpx;
  }

  .zan_fd1_0_c0_c1_c1 {
    margin: 12rpx 0rpx 0rpx 0rpx;
    color: rgba(102, 102, 102, 1);
    font-size: 24rpx;
  }

  .zan_fd1_0_c0_c1 {
    margin: 0rpx 16rpx 0rpx 16rpx;
  }

  .zan_fd1_0_c0_c0 {
    width: 100rpx;
    height: 100rpx;
    border-radius: 16rpx;
  }

  .zan_fd1_0 {
    border-bottom: 1px solid #eee;
    padding: 24rpx 0rpx 24rpx 0rpx;
  }
</style>
